package com.cf.controller;

import com.cf.log.core.ZLog;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.util.UUID;

/**
 * boot-log-LogTestApp
 *
 * @author <a href="2428922347@qq.com">Zhu mingming</a>
 * @info
 * @since 2018/7/12 上午 10:21
 */
@RestController
public class LogTestController {

    @ZLog(name = "'zmm'", user = "T(com.cf.util.RequestUtil).getIpAddr(#request)")
    @RequestMapping("/get")
    public String get(HttpServletRequest request) {
        return UUID.randomUUID().toString();
    }

}
